home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / qw12inst.zip / DIRECTLY.TEC < prev    next >
Text File  |  1991-03-11  |  2KB  |  43 lines

  1. ID:WS Writing Directly to the Screen
  2. Quarterdeck Technical Note #109
  3. by Dan Sallitt
  4.  
  5. Q: How can I tell if my program writes directly to the screen?
  6. Or how much memory it needs?
  7.  
  8. To tell if an application is writing directly to the video hardware
  9. inside DESQview, make the following changes in the application's
  10. Change a Program menu:
  11.  
  12. 1) Set "Writes Text Directly to Screen" to N;
  13.  
  14. 2) Set "Virtualize Text/Graphics" to N;
  15.  
  16. 3) On the Advanced Options screen, blank out the following four
  17. fields in the "Window Position" section: Starting Height, Starting
  18. Width, Starting Row, and Starting Column.  Put blanks in these
  19. fields, not zeros.
  20.  
  21. When these changes have been made, open the program.  DESQview will
  22. place a small window border on the screen; if the program comes up
  23. and stays within the small window border, it does not write
  24. directly to the screen.  If it blows away the window border and
  25. takes the full screen, it writes directly to the hardware.
  26.  
  27. Without QEMM's and QRAM's LOADHI program, there is no reliable way
  28. to determine how much memory an application needs to run other than
  29. by trial and error.  You can make a reasonable guess by adding
  30. together the size of the .COM or .EXE file that starts the program
  31. and the size of its biggest overlay, but a program's data storage
  32. needs are difficult to predict. The time-honored method for
  33. determining the correct memory size for a window is to start by
  34. giving the window an excessive amount of memory, then reducing that
  35. figure a bit at a time until the program starts malfunctioning.
  36.  
  37. With LOADHI's /GS (get size) parameter, discussed in the QEMM and 
  38. QRAM manuals, you can get an accurate estimate of how much memory 
  39. a program takes. After you finish running the program with LOADHI, 
  40. two numbers are returned: the first is how much memory the program 
  41. took to load and initialize, and the second is the amount of 
  42. memory the program permanently retained.
  43.